﻿using System;
using System.Collections.Generic;
using System.Text;

namespace AdaptiveAgents.Loggers
{
    class TalTempLogger : Logger
    {
        protected override void writeInternal(MessageType message, bool newLine, params object[] p)
        {
            bool isWrite = true;

            switch (message)
            {
                case MessageType.Turn:
                    Turn turn = (Turn)p[0];
                    //System.Console.Write(string.Format("Active player: {0}\tPerformance: {1}",turn.ActivePlayer, turn.Performence));
                    break;
                default:
                    isWrite = false; //Used when there is no need to write the message
                    break;
            }

            //if (newLine && isWrite)
                //System.Console.WriteLine();

        }

        public override void Close()
        {

        }
    }
}
